users = {
    # 用户名、密码、黑名单
    '小红': {
        'name': '小红',
        'password': '123456',
        'status': True
    },
    'lucy': {
        'name': 'lucy',
        'password': '456',
        'status': True
    },
    'jack': {
        'name': 'jack',
        'password': '789',
        'status': False
    }
}
print(users)
for i in range(len(users)):
    user_name = input('请输入用户名：')
    user_password = input('请输入密码：')
    if user_name in users and user_password == users[user_name]['password'] and users[user_name]['status']:
        print('登录成功!')
        break
    elif user_name in users and not users[user_name]['status']:
        print(users[user_name]['status'])
        print('用户被禁用')
    elif user_name in users and user_password != users[user_name]['password']:
        print('密码错误')
    else:
        print('用户不存在')
